<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>学员信息列表</title>
<link rel ="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
</head>
<body>
	<div class="container">
<table class="table table-bordered">
  <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">姓名</th>
      <th scope="col">身份证号</th>
      <th scope="col">学生号</th>
      <th scope="col">性别</th>
      <th scope="col">班级ID</th>
      <th scope="col">操作</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach items="${studentList}" var="student" varStatus="i">
  	<tr>
      <th scope="row">${i.index+1}</th>
      <td>${student.studentName}</td>
      <td>${student.idcard}</td>
      <td>${student.studentNo}</td>
      <td>${student.sex}</td>
      <td>${student.classId}</td>
      <td><a href="${pageContext.request.contextPath}/studentUpdateView?id=${student.id}" "type="button" class="btn btn-secondary">修改</a>
      <a href="${pageContext.request.contextPath}/studentDelete?id=${student.id}" "type="button" class="btn btn-danger">删除</a></td>
    </tr>
    </c:forEach>
  </tbody>
</table>
 <a href="${pageContext.request.contextPath}/studentAddView" type="button" class="btn btn-primary">学生添加页</a>
</div>
</body>
</html>